﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace JCore.LoLChat
{
    public partial class frmChatWindow : Form
    {
        public frmChatWindow()
        {
            InitializeComponent();
        }

        public void MessageToChatLog(string text, string person)
        {
            txtChatLog.Text = (txtChatLog.Text + person + " - " + DateTime.Now.ToString("HH:mm:ss tt") + " - " + text + Environment.NewLine);
        }

        public void AddToOnlineList(string person)
        {
            lstPersons.Items.Add(person);
        }

        private void btnSend_Click(object sender, EventArgs e)
        {
            new Login().SendMessage(txtMessage.Text, @"sum36358647@pvp.net");
        }

        private void frmChatWindow_Load(object sender, EventArgs e)
        {

        }

    }
}
